angular.module('app').directive('appHeadBar',[function(){
	return {
		restrict:'A',
		replace:true,
		templateUrl:'views/template/appHeadBar.html',
		scope: {
			text:'@'
		},
		link:function(scope){
			scope.back = function(){
				window.history.back();
			}
			scope.$on('test',function(e,data){
				console.log(e,data)
			})

		}
	}
}])